use std::str::pattern::Pattern;

pub mod pre_processor;
pub mod shader_utils;
pub mod more_pass_parser;

pub struct StringUtil;

impl StringUtil {
    #[inline]
    pub fn str_find_at<'a, P: Pattern<'a>>(
        code: &'a str,
        target: P,
        begin: usize,
    ) -> Option<usize> {
        let temp_code = &code[begin..];
        if let Some(index) = temp_code.find(target) {
            let index_0 = index;
            Some(begin + index_0)
        } else {
            None
        }
    }

    
}
